package com.tsy.server.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.tsy.server.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 用户组织关联实体类
 */
@Data
@TableName("user_organization")
@ApiModel(value = "用户组织关联实体", description = "用户和组织关联的数据库实体类")
public class UserOrganization extends BaseEntity {

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID", example = "1")
    private Long userId;

    /**
     * 组织ID
     */
    @ApiModelProperty(value = "组织ID", example = "ABC123")
    private Long orgId;

    /**
     * 角色ID
     */
    @ApiModelProperty(value = "角色ID", example = "1")
    private Long roleId;

    /**
     * 用户在该组织中的名称
     */
    @ApiModelProperty(value = "用户组织名称", example = "测试用户")
    private String userOrgName;

    /**
     * 加入方式
     */
    @ApiModelProperty(value = "加入方式", example = "1")
    private String joinType;

}